package com.winshare.saleAssistant.domain.dto.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@ApiModel
public class FeedbackCreateDTO {

    @NotBlank(message = "标题不可以为空")
    @Length(min = 1, max = 100, message = "标题长度需要在1-100个字之间")
    @ApiModelProperty(value = "标题")
    private String title;

    @Length(min = 0, max = 200, message = "内容长度需要在0-200个字之间")
    @ApiModelProperty(value = "内容")
    private String content;

    public FeedbackCreateDTO() {
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
